package com.itheima.jdk8_DateDemo;

import java.time.DayOfWeek;
import java.time.LocalDateTime;

public class Test3 {
    public static void main(String[] args) {
        //读取LocalDateTime 的练习
        LocalDateTime now = LocalDateTime.now();
       // System.out.println(now);

        //根据指定时间,构建LocalDateTime 对象
        LocalDateTime of = LocalDateTime.of(2019, 4, 21, 13, 14, 20);
       // System.out.println(of);

        int dayOfYear = of.getDayOfYear();
        int monthValue = of.getMonthValue();
        int dayOfMonth = of.getDayOfMonth();
        int year = of.getYear();
        DayOfWeek dayOfWeek = of.getDayOfWeek();
        int minute = of.getMinute();
        int hour = of.getHour();
        int second = of.getSecond();
        System.out.println("那一天是" + year +"年" + monthValue + "月中的第" +dayOfMonth + "天" + "一年中的第" + dayOfYear + "天" + hour  + "点" + minute  + "分" + second + "秒");
        System.out.println("你离开了我的生活");



    }
}
